﻿using System;

namespace Gonte.UI
{
    /// <summary>
    /// Attribute to help binding the object to the view model
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct,
        Inherited = false,
        AllowMultiple = false)]
    public class UserInterfaceAttribute
        : Attribute
    {
        #region Fields

        /// <summary>
        /// The property that maps to the label
        /// </summary>
        public string LabelProperty;

        /// <summary>
        /// The uri to the icon image
        /// </summary>
        public string IconUri;

        /// <summary>
        /// The uri of the collapsed icon image
        /// </summary>
        public string CollapsedIconUri;

        /// <summary>
        /// The uri of the expanded icon image
        /// </summary>
        public string ExpandedIconUri;

        /// <summary>
        /// The uri of the icon when there are no children objects
        /// </summary>
        public string EmptyIconUri;

        #endregion
    }
}
